<?php
namespace Admin\Model;
use Think\Model;
class WeightModel extends Model 
{
	public $tableName = 'weight';

	//获取可返积分单元
	public function num($id)
	{
		$arr['user_id'] = $id;
		$arr['is_user'] = 1;

		$weightModel = M($this->tableName);
                $weightRes = $weightModel->where($arr)->select();
        
       
        return $weightRes;
	}



}